//
//  HomeCell.m
//  收纳
//
//  Created by  on 2022/10/27.
//

#import "HomeCell.h"
@interface HomeCell()
@property (strong, nonatomic) IBOutlet UIImageView *img;
@property (strong, nonatomic) IBOutlet UILabel *name;
@property (strong, nonatomic) IBOutlet UILabel *money;
@property (strong, nonatomic) IBOutlet UILabel *date;

@end

@implementation HomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(Goods *)model{
    _model = model;
    self.img.image = [UIImage imageWithData:model.imgs[0]];
    self.name.text = model.name;
    self.money.text = model.money;
    self.date.text = [NSDate transToDate:@"yyyy-MM-dd HH:mm" :model.stamp];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
